package com.JFapp.controller;


import com.JFapp.domain.entity.ResponseResult;
import com.JFapp.service.LinkService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/link")
@Api("前台友链")
public class LInkController {

    @Autowired
    private LinkService linkService;
    @ApiOperation("获取友链")
    @GetMapping("/getAllLink")
    public ResponseResult getAllLink(){
        ResponseResult result= linkService.getAllLink();
        return result;
    }


}

